<{include file="header.html"}>
<{include file="top.html"}>
<div class="h_980 clearfix"> 
            <div class="FosfMain">
            <div class="page_daohang">
            <div class="page_dh"><a class="location-home" href="<{spUrl c=main a=index}>"></a> <{T w='The Shopping Cart'}></div>
            </div>
            <div class="title_box"></div>
            <div id="shop_cart">
                <{if !$iscart}>
                    <h2 id="cartEmptyText"><{T w='Your Shopping Cart is empty.'}></h2>
                <{else}>
                    <h1 id="cartDefaultHeading"><{T w='Your Shopping Cart Contents'}></h1>
                    <{if $HB}>
                    <{T w='NOTICEHB'}>
                    <{/if}>
                    <form method="post" action="<{spUrl c=main a=ShoppingCart}>?action=update_product" name="cart_quantity">

                    <div class="important">
                        <{T w='Total Items'}>: <{$count.count}>&nbsp;&nbsp;<{T w='Weight'}>: 0lbs&nbsp;&nbsp;<{T w='Amount'}>: <{$symbol_left}><{$count.price2*$value}>
                    </div>
                    <table cellspacing="0" cellpadding="0" border="0" width="100%" id="cartContentsDisplay">
                         <tr class="tableHeading">
                            <th id="scQuantityHeading" scope="col"><{T w='Qty.'}></th>
                            <th id="scProductsHeading" scope="col"><{T w='Item Name'}></th>
                            <th id="scTotalHeading" scope="col"><{T w='Total'}></th>
                            <th id="scRemoveHeading" scope="col">&nbsp;</th>
                         </tr>
                             <!-- Loop through all products /-->
                    <{foreach item=item name=name from=$tmpCaryarray}>
                         <tr class="rowEven">
                            <td class="cartQuantity">
                                <input type="text" size="4" name="cart_quantity[]" value="<{$item.count}>"/><br/>
                                <input type="hidden" name="cartid[]" value="<{$item.cartid}>" />      
                            </td>
                            <td class="cartProductDisplay">
                                <a href="<{Getproducturl pid=$item.pid}>">
                                <span class="back" id="cartImage">
                                    <img src="upload/<{$item.image}>" alt="<{$item.name}>" title=" <{$item.name}> " width="50" height="38" />     </span>
                                <span id="cartProdTitle"><{$item.name}>
                                <span class="alert bold"></span>
                                </span>
                                </a><br/>
                                <{if $item.size neq ""}>
                                    <input type="hidden" name="attribsize" value="<{$item.size}>" />
                                   	size:<{$item.size}>
                                <{/if}>
                           </td>
                           <td class="cartTotalDisplay">
                           <{$item.count}> <strong>*</strong> <{Getprice pid=$item.pid price=$item.price1 price2=$item.price2}><br />
                           = <{$symbol_left}><{$item.Total*$value}>
                           </td>
                           <td class="cartRemoveItemDisplay">
                                <input type="checkbox" name="cart_delete[]" value="<{$item.cartid}>" />           <a href="<{spUrl c=main a=ShoppingCart}>?action=remove_product&cartid=<{$item.cartid}>"><img src="<{$smarty.const.BASEPATH}>/css/img/small_delete.gif" alt="<{T w='Delete this item from the cart by clicking this icon.'}>" title=" <{T w='Delete this item from the cart by clicking this icon.'}> " /></a>

                           </td>
                         </tr>
                           
                      <{foreachelse}><{/foreach}>
                    <!-- Finished loop through all products /-->
                    </table>
                    
                    <div id="cartSubTotal"><{T w='Sub-Total:'}> <strong><{$symbol_left}><{$count.price2*$value}> </strong></div>
                    <br class="clearBoth">
                    
                    <!--bof shopping cart buttons-->
                    <{if $smarty.const.PAYPAL_EC_TYPE eq 'True' && $user.customers_id neq null}>
                    <div class="buttonRow">
                        <a href="<{spUrl c=paypal a=paypalEC}>"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif" alt="Click here to pay via PayPal Express Checkout" /></a>
                    </div>
                    <{/if}>
                    <div class="buttonRow forward">
                        <a href="<{spUrl c=main a=CheckoutShipping}>">
                        <img title=" <{T w='Checkout'}> " alt="<{T w='Checkout'}>" src="<{$smarty.const.BASEPATH}>/css/img/button_checkout.gif"/>
                        </a>
                    </div>
                    <div class="buttonRow back">
                        <a href="<{spUrl c=products a=index}>">
                        <img title=" <{T w='Continue Shopping'}> " alt="<{T w='Continue Shopping'}>" src="<{$smarty.const.BASEPATH}>/css/img/button_continue_shopping.gif"/>
                        </a>
                    </div>
                    <div class="buttonRow back">
                        <input type="image" src="<{$smarty.const.BASEPATH}>/css/img/button_update_cart.gif" alt="<{T w='Change your quantity by highlighting the number in the box, correcting the quantity and clicking this button.'}>" title=" <{T w='Change your quantity by highlighting the number in the box, correcting the quantity and clicking this button.'}> " />
                    </div>
                    <!--eof shopping cart buttons-->
                    </form>
                    <{/if}>
                    <!--shop_cart template end-->
            </div><br class="clear"/>
            <div id="paypal_other"><{T w='Paypal other'}></div>
            </div>

</div>
<{include file="footer.html"}>
</body>
</html>